package com.dc.wifi.main.ui.activity

import android.content.Intent
import com.dc.netlib.base.BaseActivity
import com.dc.netlib.impl.NoMultiClickListener
import com.dc.wifi.main.model.LoginViewModel
import com.dc.wifi.BR
import com.dc.wifi.R
import com.dc.wifi.databinding.ActivityLoginBinding

class LoginActivity : BaseActivity<LoginViewModel, ActivityLoginBinding>(
    R.layout.activity_login,
    BR.mLoginViewModel
) {

    override fun initEvent() {
        super.initEvent()
        with(binding) {
            btnLookWXArticle.setOnClickListener(NoMultiClickListener {
//                startActivity(Intent(this@LoginActivity, WXArticleActivity::class.java))
            })
        }

        mViewModel.loginLiveData.observe(this) {
//            if (it == null) {
//
//                return@observe
//            }
//            startActivity(Intent(this, MainActivity::class.java))
//            finish()
        }
    }
}